home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 15 code / 3D Interface / Demo3D / MDemo3D.cp < prev    next >
Encoding:
Text File  |  1994-10-21  |  1.5 KB  |  76 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. //    File:        MDemo3D.cp
  3. //
  4. //    Contains:    3D drawing demo program
  5. //
  6. //    Written by:    Jamie Osborne
  7. //                 Adapted for 3.1.1 by Jeroen Schalk
  8. //
  9. //    Copyright:    © 1992-1994 by Apple Computer, Inc.
  10. //----------------------------------------------------------------------------------------
  11.  
  12. #ifndef __MACAPP__
  13. #include <MacApp.h>
  14. #endif
  15.  
  16. #ifndef __UPRINTING__
  17. #include <UPrinting.h>
  18. #endif
  19.  
  20. #ifndef __UGRIDVIEW__
  21. #include <UGridView.h>
  22. #endif
  23.  
  24. #ifndef __UTEVIEW__
  25. #include <UTEView.h>
  26. #endif
  27.  
  28. #ifndef __UDIALOG__
  29. #include <UDialog.h>
  30. #endif
  31.  
  32. #ifndef __UGEOMETRY__
  33. #include <UGeometry.h>
  34. #endif
  35.  
  36. #ifndef __UFLOATWINDOW__
  37. #include <UFloatWindow.h>
  38. #endif
  39.  
  40. #ifndef __UDEMO3D__
  41. #include <UDemo3D.h>
  42. #endif
  43.  
  44. #ifndef __U3DDRAWING__
  45. #include "U3DDrawing.h"
  46. #endif
  47.  
  48. //----------------------------------------------------------------------------------------
  49. // main:
  50. //----------------------------------------------------------------------------------------
  51. #pragma push
  52. #pragma processor 68000
  53.  
  54. void main()
  55. {
  56.     InitToolBox();
  57.  
  58.     if (ValidateConfiguration(gConfiguration))
  59.     {
  60.         InitUMacApp(12);                            // Initialize MacApp; 12 calls to MoreMasters
  61.         InitUTEView();
  62.         InitUDialog();
  63.         InitUGridView();
  64.         InitUFloatWindow();
  65.         InitU3DDrawing();                            // Add 3-d drawing unit
  66.  
  67.         TTestApplication* gTestApplication = new TTestApplication;
  68.         gTestApplication->ITestApplication();
  69.         gTestApplication->Run();
  70.     }
  71.     else
  72.         StdAlert(phUnsupportedConfiguration);
  73. } // main
  74.  
  75. #pragma pop
  76.